import cv2


def show_imginfo(img):
    print(img.dtype)
    print(img.shape)
    print(img.size)


def show_video():
    capture = cv2.VideoCapture(0)
    while True:
        ret, frame = capture.read()
        frame = cv2.flip(frame, 1)
        cv2.imshow('video',frame)
        key = cv2.waitKey(25)
        if key == 27:
            cv2.destroyWindow('video')
            break
    capture.release()


print('Hello, world')
show_video()
img = cv2.imread('lena.jpg', cv2.IMREAD_COLOR)
show_imginfo(img)
cv2.imshow('lena',img)
cv2.waitKey(0)
cv2.destroyWindow('lena')